<template>
  <div>home</div>
  <el-carousel :interval="2000" type="card" height="600px">
    <el-carousel-item v-for="item in imagelist" :key="item.id">
      <h3 text="5xl" justify="center">
        <img :src="item.url" alt="">
      </h3>
    </el-carousel-item>
  </el-carousel>
</template>

<script setup lang="ts">
import {ref} from 'vue'

const imagelist=ref([
  {
    id:1,
    url:'../../images/ky1.jpg'
  },
  {
    id:2,
    url:'../../images/ky3.jpg'
  },
  {
    id:3,
    url:'../../images/ad1.png'
  },
  {
    id:4,
    url:'../../images/lb3.jpg'
  },
  {
    id:5,
    url:'../../images/lb2.png'
  },
  {
    id:6,
    url:'../../images/dg2.png'
  },
])


</script>

<style lang="less" scoped>
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 400px;
  margin: 0;
  text-align: center;
}
.el-carousel__item h3 img {
  width: 100%;
  height: 600px;
  object-fit: contain;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

</style>
